import request from '@/router/axios';

//大屏展示 统计图
export const factoryoptionScreenData = (year) => {
    return request({
      url: '/api/blade-xy-big-screen/factoryoption/screenData',
      method: 'get',
      params: {
        year
      }
    })
}

//库存水平描述接口
export const stockdescriptionDetail = (year, month, kpi) => {
    return request({
      url: '/api/blade-xy-big-screen/stockdescription/detail',
      method: 'get',
      params: {
        year,
        month,
        kpi
      }
    })
}

//未达成指标原因
export const stockreasonList = (year, month, kpi) => {
    return request({
      url: '/api/blade-xy-big-screen/stockreason/list',
      method: 'get',
      params: {
        year,
        month,
        kpi
      }
    })
}






















  

export const targetInfoStatistic = (params) => {//date和parentType
    return request({
        url: '/api/blade-xy-big-screen/targrtinfo/targetInfoStatistic',
        method: 'get',
        params: {
            ...params,
        }
    })
}

export const targetHistogram = (params) => {//date和type
    return request({
        url: '/api/blade-xy-big-screen/targrtinfo/targetHistogram',
        method: 'get',
        params: {
            ...params,
        }
    })
}

export const targetrecordList = (params) => {//yearAndMonth type
    return request({
        url: '/api/blade-xy-big-screen/targetrecord/list',
        method: 'get',
        params: {
            ...params,
        }
    })
}






